<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    .box {
      height: 200px;
      width: 200px;
      background-color: red;
      /* 设置哪个属性要过渡效果 */
      transition-property: height;
      /* 设置过渡时间 */
      transition-duration: 2s;
      /* transition-property: height, width;
      transition-duration: 1s, 3s; */

      /* 所有属性 */
      transition-property:all;
      transition-duration: 1s;
      /* 过渡延迟 */
      transition-delay: 1s;
    }

    .box:hover {
      height: 400px;
      width: 400px;
      transform: rotateZ(45deg);
    }
  </style>
</head>

<body>
  <div class="box"></div>
</body>

</html>